﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using Common;
using ReflectDemo.Core.Imp;

namespace ReflectUnit
{
    class Program
    {
        static void Main(string[] args)
        {
            MethodInfo[] methods = typeof(ReflectDemoTest).GetMethods();
            foreach (var m in methods)
            {
                Console.WriteLine(m.Name);
            }
            Console.Read();
        }

        static void CreateObjectInstanceTest()
        {
            ReflectDemoTest test = (ReflectDemoTest)ReflectHelper.CreateInstance("ReflectDemo.Core.Imp", "ReflectDemo.Core.Imp.ReflectDemoTest");
            Console.WriteLine(test.PrintHello());
            Console.Read();
        }
    }
}
